export default class UIUtil{
    public static move(node:cc.Node,targetParent:cc.Node,cleanup:boolean = false){
        let wp = node.convertToWorldSpaceAR(cc.v3(0, 0,0))
        let gp = targetParent.convertToNodeSpaceAR(wp)
        node.position = gp
        node.removeFromParent(cleanup)
        targetParent.addChild(node)
    }
}